package com.testmall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.testmall.entity.User;

import java.util.List;
import java.util.Map;

/**
  * @Description:
  * @Author: littleDesire
  * @Date: 2022-06-21 14:29
  * @Version: 1.0
  *
  */
public interface UserService extends IService<User>{
    /**
     * 用户注册
     * @param user 用户对象
     * @return  插入的行数
     */
    int registerUser(User user);

    int login(Map<String, Object> map);

    int changePassword(Map<String, Object> map);

    List<Map<String, Object>> queryUser();

}
